package edu.calvin.djs32.cs214.interpreters.calculator.primitives;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import edu.calvin.cs214.hobbes2008.IntegerTIR;


public class MultiplyPrimitiveTest {
	@Test
	public void shouldApplyMultiplication() {
	  assertEquals(new IntegerTIR(6), new MultiplyPrimitive().apply(new IntegerTIR(2), new IntegerTIR(3)));
	  assertEquals(new IntegerTIR(8), new MultiplyPrimitive().apply(new IntegerTIR(2), new IntegerTIR(4)));
	  assertEquals(new IntegerTIR(-6), new MultiplyPrimitive().apply(new IntegerTIR(-1), new IntegerTIR(6)));
	}
}
